package com.xigua.chapter_4_FactoryMethod.example.idcard;

import com.xigua.chapter_4_FactoryMethod.example.framework.Product;

/**
 * @author LiRongHua
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2022/3/3020:18
 */
public class IDCard extends Product {

    private String owner;

    IDCard(String owner) {
        System.out.println("制作"+owner+"的ID卡");
        this.owner = owner;
    }

    public void use() {
        System.out.println("使用"+owner+"的ID卡");
    }

    public String getOwner() {
        return owner;
    }
}
